<script>
	export default {
		onLaunch: function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
			this.$i18n.locale = uni.getLocale()
			console.log('locale',this.$i18n.locale);
			 this.setTitle()
		},
		onShow: function() {
			console.log('App Show')
			
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			setTitle(){
				uni.setTabBarItem({// 修改底部导航
					index: 0,
					text: this.$t('shouye')
				});
				uni.setTabBarItem({// 修改底部导航
					index: 1,
					text: this.$t('chanpin')
				});
				uni.setTabBarItem({// 修改底部导航
					index: 2,
					text: this.$t('zhuanzhang')
				});
				uni.setTabBarItem({// 修改底部导航
					index: 3,
					text: this.$t('mys')
				});
			},
		},
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		background-color: #001d57;
		color: #fff;
		font-size: 28rpx;
	}
	image{
		width: 100%;
		height: 100%;
	}

	/* #endif */
	/* radio 选中后的样式 */
	uni-radio .uni-radio-input.uni-radio-input-checked{
		background-color: #5f74ed!important;
		border-color: #5f74ed!important;
		background-clip: content-box!important;
		padding: 6rpx!important;
		// margin: 8rpx!important;
		box-sizing: border-box;
	}
		
	/* radio 选中后的图标样式*/
	 uni-radio .uni-radio-input.uni-radio-input-checked::before{
		display: none!important;
	}
	.example-info {
		font-size: 14px;
		color: #fff;
		padding: 10px;
	}
</style>
